package com.hzhc.controller.baseinfo;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hzhc.common.BaseController;
import com.hzhc.entity.ZcFile;
import com.hzhc.enumBean.ResultUtilCodeEnum;
import com.hzhc.service.ZcFileService;
import com.hzhc.utils.ResultUtil;
import com.hzhc.vo.ZcFileVo;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 *
 *
 * 政策文件下載地址 前端控制器
 *
 * @author zmx
 * @since 2024-10-10
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/download")
public class ZcDownloadController extends BaseController {
    private final ZcFileService zcFileService;



    @RequestMapping("/downLoadZcFile")
    public ResultUtil<ZcFileVo> getYyNoticeVoList(@RequestBody ZcFileVo zcFileVo){
        ZcFileVo zcFile=zcFileService.getZcFile(zcFileVo);
        return ResultUtil.build(zcFile,  ResultUtilCodeEnum.SUCCESS);
    }
}
